package com.sc.user;

import com.sc.user.mapper.ApUserMapper;
import com.sc.user.domain.pojo.ApUser;
import com.sc.user.service.ApUserService;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

@SpringBootTest
public class SelectUser {
    @Autowired
    private ApUserMapper apUserMapper;
    @Autowired
    private ApUserService apUserService;

    @Test
    public void selectUser() {
        List<ApUser> list = apUserService.list();
        for (ApUser apUser : list) {
            System.out.println(apUser);
        }
    }
}
